package 测试1;

import java.util.Arrays;
import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * Created by hest0 on 2017/7/12.
 */
public class 字符排序1 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            String line = sc.nextLine();
            System.out.println(func(line));
        }
        sc.close();
    }

    private static String func(String line) {
        StringBuilder sb = new StringBuilder();

        StringBuilder sb1 = new StringBuilder();
        Matcher m1 = Pattern.compile("[0-9]+").matcher(line);
        while (m1.find()) {
            sb1.append(m1.group());
        }
        char[] c1 = sb1.toString().toCharArray();
        Arrays.sort(c1);
        sb.append(new String(c1));

        StringBuilder sb2 = new StringBuilder();
        Matcher m2 = Pattern.compile("[A-Z]+").matcher(line);
        while (m2.find()) {
            sb2.append(m2.group());
        }
        char[] c2 = sb2.toString().toCharArray();
        Arrays.sort(c2);
        sb.append(new String(c2));

        StringBuilder sb3 = new StringBuilder();
        Matcher m3 = Pattern.compile("[a-z]+").matcher(line);
        while (m3.find()) {
            sb3.append(m3.group());
        }
        char[] c3 = sb3.toString().toCharArray();
        Arrays.sort(c3);
        sb.append(new String(c3));

        return sb.toString();
    }
}
